/*	******************************************
 File:		StateGame.h
 Author:		Adnan Srna, Peter Kober, Ivo Havranek
 Purpose:	AugmentedReality 2
 (up)Date:	March/April 2010
 Descr.:		Game State, demo game for 
 augmented presentation
 Origin:		Salzburg University of Applied Science
 ******************************************	*/

#pragma once
#include "ofMain.h"
#include "SoundTracker.h"
#include "HaarTracker.h"
#include "ofxThread.h"
#include "faceThread.h"

struct Object {
	ofPoint		position;
	ofImage		image;
	float		speed;
};



class VoiceOverEyeP {
	public:
		VoiceOverEyeP();
		~VoiceOverEyeP();
		void setup();
		void update();
		void draw();
		void keyPressed(ofKeyEventArgs& arg);
		void keyReleased(ofKeyEventArgs& arg);
	
		void checkBoundary(float &x, float &y);
		void initAssets();
		void drawStreet();
		bool carCrash();

		Object				Street, Car, Fishy;
	
		ofPoint				input, speed;
		int					time, randomTime, lives;

		CSound				soundTool;
		//CHaar				faceTool;
		
		faceThread			threadFace;
		bool				mydebug;
};
